<template>
  <el-config-provider :locale="locale">
    <div class="app">
      <router-view />
    </div>
  </el-config-provider>
</template>

<script lang="ts">
import { defineComponent } from '@vue/composition-api'

import zhCn from 'element-plus/lib/locale/lang/zh-cn'

export default defineComponent({
  name: 'Layout',
  components: {},
  props: {
    name: {
      type: String,
    },
  },

  setup() {
    return {
      locale: zhCn,
    }
  },
})
</script>

<style lang="less">
.app {
  height: 100%;
}
</style>
